package com.ys.erp.framework.response;

/**
 * 统一返回值类型
 *
 * @author lwj
 * @date 2021/5/1
 */
public abstract class AbstractResponseCode {

    /**
     * 默认Code
     */
    public static final ResponseDTO<Object> SUCCESS = ResponseDTO.generate(1, "成功");
    public static final ResponseDTO<Object> ERROR = ResponseDTO.generate(-1, "服务未知异常");


    public static final ResponseDTO<Object> AGAIN_LOGIN = ResponseDTO.generate(10000, "请重新登录");
    public static final ResponseDTO<Object> INFO_NULL = ResponseDTO.generate(10003, "信息不存在");
    public static final ResponseDTO<Object> CLIENT_REQUEST_ERROR = ResponseDTO.generate(10004, "客户端请求方式异常");
    public static final ResponseDTO<Object> VALID_ERROR = ResponseDTO.generate(10005, "参数校验异常");
    public static final ResponseDTO<Object> RIGHT_ERROR = ResponseDTO.generate(10006, "暂无权限");
    public static final ResponseDTO<Object> FREQUENT_REQUEST = ResponseDTO.generate(10011, "请求过于频繁");
    public static final ResponseDTO<Object> SMS_CODE_ERROR = ResponseDTO.generate(10012, "短信验证码错误请重试");
    public static final ResponseDTO<Object> JOIN_BUS_H5_NO_SEE_ERROR = ResponseDTO.generate(10013, "无权查看该门店");
    public static final ResponseDTO<Object> SHOP_NOT = ResponseDTO.generate(10014, "没有这家门店");
    public static final ResponseDTO<Object> LOGIN_ERROR = ResponseDTO.generate(10001, "账号或密码错误");
    public static final ResponseDTO<Object> EMP_ACC_DISABLE = ResponseDTO.generate(10009, "账号被禁用");

}
